package com.wn.ticket.mapper;

import com.wn.ticket.entity.HotSearch;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/28
 */
@Repository
public interface HotSearchMapper {

    /**
     * 新增热门搜索
     * @param hotSearch
     */
    void insert(HotSearch hotSearch);

    /**
     * 删除热门搜索
     * @param id
     */
    void delete(int id);

    /**
     * 查询全部热门收索
     * @return
     */
    List<HotSearch> getAll();

}
